home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / IDL / Undo.idl < prev    next >
Encoding:
Text File  |  1994-04-19  |  2.0 KB  |  85 lines  |  [TEXT/MPS ]

  1. //# Copyright:    © 1993-94 by Apple Computer, Inc., all rights reserved.
  2. #ifndef _UNDO_
  3. #define _UNDO_
  4.  
  5. #ifndef _ODOBJECT_
  6. #include "ODObject.idl"
  7. #endif
  8.  
  9. //==============================================================================
  10. // Constants
  11. //==============================================================================
  12.  
  13. //==============================================================================
  14. // Classes defined in this interface
  15. //==============================================================================
  16.  
  17. interface  ODUndo;
  18.  
  19. //==============================================================================
  20. // Classes used by this interface
  21. //==============================================================================
  22.  
  23. interface  ODPart;
  24.  
  25.  
  26. //==============================================================================
  27. // ODUndo
  28. //==============================================================================
  29.  
  30. interface ODUndo :  ODObject
  31. {
  32.  
  33.  
  34.    void AddActionToHistory(in ODPart whichPart,
  35.                               in ODActionData actionData,
  36.                            in ODActionType actionType,
  37.                            in ODName undoActionLabel,
  38.                            in ODName redoActionLabel);
  39.  
  40.    void Undo();
  41.  
  42.    void Redo();
  43.  
  44.    void MarkActionHistory();
  45.  
  46.    void ClearActionHistory(in ODRespectMarksChoices respectMarks);
  47.  
  48.    void ClearRedoHistory();
  49.  
  50.    ODBoolean PeekUndoHistory(in ODPart part,
  51.                                 inout ODActionData actionData,
  52.                              inout ODActionType actionType,
  53.                              inout ODName actionLabel);
  54.   
  55.    ODBoolean PeekRedoHistory(inout ODPart part,
  56.                                 inout ODActionData actionData,
  57.                              inout ODActionType actionType,
  58.                              inout ODName actionLabel);
  59.                              
  60. #ifdef __SOMIDL__
  61.     implementation
  62.     {
  63.     override:
  64.         somInit,
  65.         somUninit,
  66.         Purge;
  67.     
  68.       releaseorder:
  69.         InitUndo,
  70.         AddActionToHistory,
  71.         Undo,
  72.         Redo,
  73.         MarkActionHistory,
  74.         ClearActionHistory,
  75.         ClearRedoHistory,
  76.         PeekUndoHistory,
  77.         PeekRedoHistory;
  78.         
  79.  
  80.   };
  81. #endif
  82. };
  83.  
  84. #endif // _UNDO_
  85.